<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>0415</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <div v-if="flag">计算机组成原理</div>
        <div v-if="flag">Spring Cloud实战</div>
        <div v-if="flag">JVM原理与优化</div>
        <hr>
        <template v-if="flag">
            <div>计算机组成原理</div>
            <div>Spring Cloud实战</div>
            <div>JVM原理与优化</div>
        </template>
    </div>
    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                flag: true
            }
        })
    </script>
</body>

</html>